<?php
/**
 * TestGuest Version1.0
 * ================================================
 * Copy 2017-2018 zxj
 * Web: http://www.zhaoxiaojie.club
 * ================================================
 * Author: Zxj
 * Date: 17/8/14
 * Time: 上午11:02
 * 显示帖子界面
 * 接收notes的id并获取数据跳转
 */
session_start();
//引入函数库
include_once 'common/function.inc.php';
include_once 'common/mysql.inc.php';
include_once 'common/ini.php';

    $id = isset($_GET['id'])?intval($_GET['id']):null;

    if($id == null){

        _alert_back('参数错误!');


    }

//获取楼主数据

$sql1 = "select * from bbs_notes where id = $id limit 1";
$res1 =mysql_query($sql1);
$louzhu_data = mysql_fetch_assoc($res1);



//获取回复数据

//$sql2 = "select * from bbs_reply WHERE nid = $id ORDER BY id ASC";
//$res2 = mysql_query($sql2);
// while($rows = mysql_fetch_assoc($res2)){
//
//        $reply_data[] = $rows;
//
// }


  $reply_data = _fenye($page=1,$id);


    //dd2($reply_data['data']);
    include_once VIEW.'/show.html';


?>